/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: COFFEEWEN
 * Date: 2022-08-03
 * Time: 19:34
 */
public class Test {
    class Solution {
        public boolean canConstruct(String ransomNote, String magazine) {
            boolean n = false;
            for (int i = 0;i<magazine.length;i++){
                if (ransomNote[i] == magazine[i]){
                    n = true;
                }else {
                    n = false;
                    break;
                }
            }
            return n;
        }
    }
    public static void main(String[] args) {

    }
}
